# Generated by Django 4.0.4 on 2022-04-28 19:09

import content.models
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('content', '0015_article_group_image_group_phrase_group_video_group'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='group',
            options={'ordering': ['-created'], 'verbose_name': 'Группа', 'verbose_name_plural': 'Группа'},
        ),
        migrations.CreateModel(
            name='Rule',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True, verbose_name='Создано')),
                ('updated', models.DateTimeField(auto_now=True, verbose_name='Обновлено')),
                ('title', models.CharField(max_length=250, unique=True)),
                ('description', models.TextField(blank=True)),
                ('slug', models.SlugField(verbose_name='URL')),
                ('group', models.ForeignKey(default=content.models.get_initial_group, on_delete=django.db.models.deletion.CASCADE, to='content.group')),
                ('tags', models.ManyToManyField(blank=True, related_name='%(class)s_related', to='content.tag')),
            ],
            options={
                'verbose_name': 'Правило',
                'verbose_name_plural': 'Правило',
            },
        ),
    ]
